package com.isecommerce.application.datawizard.entity;

import java.util.ArrayList;

/**
 * RAW CSV File Info Entity
 *
 *
 * @version 1.2.5
 * @author Leslie, Chen
 */

public class RAWCSVFileInfoEntity {

    /**
     * CSV Alias Name
     */
    public String csvName;
    
    /**
     * File Name
     */
    public String fileName;
    
    /**
     * Number of Column
     */
    public int colCount;

    /**
     * Column Delimiter 
     */
    public String colDel;
        
    /**
     * Page endcode
     */
    public String encode;
    
    /**
     * Number of line skipped
     */
    public int skipLine;
    
    /**
     * End of line
     */
    public String endOfLine;
    
    /**
     * Enable status
     */
    public boolean isEnabled;
    
    /*
     * Column Info Array
     */
    public ArrayList<RAWCSVColumnInfoEntity> colInfoArray;
    
    /**
     * Default constructor.
     *
     */
    public RAWCSVFileInfoEntity(String csvName, String fileName, int colCount, String colDel, String encode, int skipLine, String endOfLine, boolean isEnabled, ArrayList<RAWCSVColumnInfoEntity> colInfoArray) {
    	this.csvName = csvName;
        this.fileName = fileName;
        this.colCount = colCount;
        this.colDel = colDel;
        this.encode = encode;
        this.skipLine = skipLine;
        this.endOfLine = endOfLine.trim();
        this.isEnabled = isEnabled;
        this.colInfoArray = colInfoArray;
    }
}